<h1>我的地址列表</h1>

<table>
<% for address in @addresses %>
  <tr>
    <td class="address"><%=  address.title() %></td>
    <td><%= link_to '编辑', [:edit,@user,address] %></td>
    <td><%= link_to '删除', [@user,address], :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to '新增地址', new_user_address_path(@user) %>
